/*
* @Date: 2021/1/21
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  display: 'inline-block',
  props: [{
    key: 'allowClear',
    type: 'boolean',
    label: '支持清除',
  }, {
    key: 'autoFocus',
    type: 'boolean',
    label: '自动聚焦',
  }, {
    key: 'backfill',
    type: 'boolean',
    label: '支持回填',
  }, {
    key: 'children',
    type: 'multiple',
    label: '数据源',
  }, {
    key: 'defaultActiveFirstOption',
    type: 'boolean',
    label: '首项高亮',
  }, {
    key: 'defaultOpen',
    type: 'boolean',
    label: '默认展开',
  }, {
    key: 'defaultValue',
    type: 'string',
    label: '默认值',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '禁用',
  }, {
    key: 'dropdownMatchSelectWidth',
    type: 'number',
    label: '虚拟滚动',
  }, {
    key: 'filterOption',
    type: 'boolean|function',
    function: '(inputValue, option)',
    label: '输入筛选',
  }, {
    key: 'open',
    type: 'boolean',
    label: '下拉展开',
  }, {
    key: 'options',
    type: 'array',
    arrayType: 'label:标签,value:键值',
    label: '选项内容'
  }, {
    key: 'placeholder',
    type: 'string',
    label: '提示词',
  }, {
    key: 'value',
    type: 'string',
    label: '当前值',
  }, {
    key: 'onBlur',
    type: 'function',
    label: '失焦回调',
    function: '()',
  }, {
    key: 'onChange',
    type: 'function',
    label: '修改回调',
    function: '(value)',
  }, {
    key: 'onDropdownVisibleChange',
    type: 'function',
    label: '展开回调',
    function: '(open)',
  }, {
    key: 'onFocus',
    type: 'function',
    label: '焦点回调',
    function: '()',
  }, {
    key: 'onSearch',
    type: 'function',
    label: '搜索回调',
    function: '(value)',
  }, {
    key: 'onSelect',
    type: 'function',
    label: '选中回调',
    function: '(value, option)',
  }],
  defaultProps: {
    style: { width: 200 }
  }
}
